# Please install OpenAI SDK first: `pip3 install openai`

from openai import OpenAI
import os
import urllib3
urllib3.disable_warnings()
os.environ['http_proxy'] = 'http://skyproxy.vivo.xyz:80'
os.environ['https_proxy'] = 'http://skyproxy.vivo.xyz:80'
os.environ['REQUESTS_CA_BUNDLE'] = "D:/software/runnable/adproxy.pem"

client = OpenAI(api_key="sk-d0051a0f90514515bd4728041c301d4e", base_url="https://api.deepseek.com")

response = client.chat.completions.create(
    model="deepseek-chat",
    messages=[
        {"role": "system", "content": "You are a helpful assistant"},
        {"role": "user", "content": "Hello"},
    ],
    stream=False
)

print(response.choices[0].message.content)